#include <iostream>

using namespace std;
int separate(double &f);
int main(){
    int a ;
    double b;
    cout<<"Enter a double type number:";
    cin>>b;
    a = separate(b);
    cout<<"The input number is divided to "<<a<<" and "<<b<<endl;
}
int separate(double &f){
    int temp;
    temp = int (f);
    f = f -temp;
    return temp;
}
